package com.example.forum.dao;

import com.example.forum.model.ArticleReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleReplyMapper {
    int insert(ArticleReply row);

    int insertSelective(ArticleReply row);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply row);

    int updateByPrimaryKey(ArticleReply row);

    /**
     * date: 2024/09/16 21:21<br/>
     * Description:
     * 根据帖子id查询所有的回复
     *
     * @author: jmy <br/>
     */
    List<ArticleReply> selectByArticleId(@Param("articleId") Long articleId);
}